<template>
  <div>
    <div class="beijing">
      <img src="http://liufusong.top:8080/img/profile/bg.png" alt="" />
    </div>
    <div class="My_info__eOYeg">
      <div class="user-tx">
        <img src="http://liufusong.top:8080/img/profile/avatar.png" alt="" />
      </div>
      <p>游客</p>
      <van-button
        class="sin-line"
        @click="$router.push('/login')"
        type="primary"
        >去登录</van-button
      >
    </div>
    <div class="user-list">
      <div @click="$router.push('/login')">
        <van-icon name="star-o" size="20px" />
        <p>我的收藏</p>
      </div>
      <div>
        <van-icon name="home-o" size="20px" @click="$router.push('/login')" />
        <p>我的出租</p>
      </div>
      <div>
        <van-icon name="underway-o" size="20px" />
        <p>看房纪录</p>
      </div>
      <div>
        <van-icon name="newspaper-o" size="20px" />
        <p>成为房主</p>
      </div>
      <div>
        <van-icon name="contact" size="20px" />
        <p>个人资料</p>
      </div>
      <div>
        <van-icon name="service-o" size="20px" />
        <p>联系我们</p>
      </div>
    </div>
    <div class="My_ad__1wZZj">
      <img src="http://liufusong.top:8080/img/profile/join.png" alt="" />
    </div>
  </div>
</template>

<script>
export default {
  name: 'user-page',
  components: {},
  props: {},
  data() {
    return {}
  },
  computed: {},
  watch: {},
  created() {},
  methods: {}
}
</script>

<style lang="less" scoped>
.beijing {
  position: relative;
  img {
    width: 100%;
  }
}
.My_info__eOYeg {
  position: absolute;
  height: 165px;
  width: 320px;
  margin-top: 50px;
  top: 85px;
  left: 22px;
  background-color: #fff;
  box-shadow: 0 0 10px 3px #ddd;
  // overflow: hidden;
  .user-tx {
    position: absolute;
    border: 5px solid #f5f5f5;
    box-shadow: 0 2px 2px #bdbdbd;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    left: 50%;
    img {
      width: 60px;
      height: 60px;
    }
  }
  p {
    text-align: center;
    font-size: 13px;
    color: #333333;
    margin-top: 56px;
  }
  .van-button {
    width: 69px;
    height: 30px;
    font-size: 13px;
    color: #fff;
    padding: 0 15px;
    margin-left: 50%;
    transform: translateX(-50%);
    margin-top: 20px;
    border-radius: 5px;
  }
}
.user-list {
  position: relative;
  top: 130px;
  display: flex;
  flex-wrap: wrap;
  // overflow: hidden;
  div {
    height: 65px;
    margin: 15px 0;
    align-content: center;
    justify-content: center;
    text-align: center;
    width: 125px;
    p {
      margin-top: 10px;
      font-size: 13px;
      color: #333333;
    }
  }
}
.My_ad__1wZZj {
  margin-top: 120px;
  padding: 15px;
  img {
    width: 100%;
  }
}
</style>
